package com.example.school.controller.user;

import com.example.school.service.OrdersService;
import com.example.school.utils.common.result.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user/orders")
public class OrdersController {

    @Autowired
    private OrdersService ordersService;

    @GetMapping("/get_user_orders")
    public Result getUserOrders(){
        return ordersService.getUserOrders();
    }

}
